<?php
/**
 *
 * @group_name
 *
 * @author Master
 *
 * @api AddCar
 *
 * @time 2020/6/5 - 15:21
 *
 */

namespace app\api\validate;


use think\Validate;

class AddCar extends Validate
{

    protected $rule = [
        'username' => 'require|login_check:username',
        'password' => 'require|min:6|max:16|login_check:password',
    ];

    protected $message = [
        'username.require' => '用户名不能为空',
        'password.require' => '密码不能为空',
        'password.min' => '密码长度最短为六位',
        'password.max' => '密码最长为十六位',
    ];



}